package com.hyl.service;

import com.hyl.entity.SysUser;
import com.hyl.mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * SysUserService
 *
 * @author hyl
 * @date 2025-06-25
 */
@Service
public class SysUserService {


    @Autowired
    private SysUserMapper sysUserMapper;

    public void add(){
        SysUser user1 = new SysUser("ceshi","hyl","12345678910");
        sysUserMapper.insertUser(user1);

        SysUser user2 = new SysUser("tmp","hyl","12345678910");
        sysUserMapper.insertUser(user2);
    }


    public void list(){
        sysUserMapper.selectUserByName("hyl");
    }

    public SysUserMapper getSysUserMapper() {
        return sysUserMapper;
    }

    public void setSysUserMapper(SysUserMapper sysUserMapper) {
        this.sysUserMapper = sysUserMapper;
    }
}
